DCOLLECT (IBM supplied function of PGM=IDCAMS © Copyright IBM Corp)
The DFSMS Data Collection Facility (DCOLLECT) is a function of access method services. DCOLLECT collects data in a sequential file you can use as input to other programs or applications.
Following information can be retrieved
Record Type Name (
- D - Active Data Set Record
- A - VSAM Association Information
- V - Volume Information
- M - Migrated Data Set Information
- B - Backup Data Set Information
- C - DASD Capacity Planning Information
- T - Tape Capacity Planning Information
- DC - Data Class construct information
- SC - Storage Class construct information
- MC - Management Class construct Information
- BC - Base Configuration Information
- SG - Storage Group construct Information
- VL - Storage Group volume Information
- AG - Aggregate Group Information
- DR - OAM Drive Record Information
- LB - OAM Library Record Information
- CN - Cache Names from the Base Configuration Information
- AI - Accounting Information from the ACS routines
IDC$1001 (filter DCOLLECT records by using the supplied exitname)
An installation may utilize the supplied user EXITNAME IDC$1001 to filter the records created by the DCOLLECT function. The advantage of this solution over the IBM supplied exit sample is, that it is ‚open‘ i.e. a user can change the selection criteria dynamically. The standard alternative is naturally to utilize the SORT program after a full extract was done. As with many standard programs supplied, there are always decent ‚filter functions‘ missing to extract data.
//DCOLLECT EXEC PGM=IDCAMS
//STEPLIB DD DISP=SHR,DSN=RA2002.V3R7M0.LINKLIB
//OUTDD DD DISP=SHR,DSN=XRZP001.IDCAMS.OUTDDNEW,
// DCB=(RECFM=VB,LRECL=4096)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DCOLLECT VOLUMES(*) OFILE(OUTDD) +
EXITNAME(IDC$1001)
/*
//FLTPRINT DD SYSOUT=*
//FLTINPUT DD *
+OPTIONS DUMPREC=V,HITS=ONLY
+INCLUDE COND=((05,02,CH,EQ,A,OR,
05,02,CH,EQ,D,OR,
05,02,CH,EQ,V),AND,
(25,44,CG,EQ,USERCAT.**,OR,
25,44,CG,EQ,SYS1.VVDS.**))
//
For the IBM DCOLLECT Output Record Structure please refer to the IBM Literature.